package com.scs.application.modules.wm.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scs.application.core.mapper.IBaseMapper;
import com.scs.application.modules.wm.dto.PickItemDTO;
import com.scs.application.modules.wm.dto.PickItemGroupByApplyPackageUnitDTO;
import com.scs.application.modules.wm.entity.PickItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 科室请领单明细 Mapper 接口
 * </p>
 */
public interface PickItemMapper extends IBaseMapper<PickItem> {



    /*科室退货批量选择*/
    Page<?> pageDeptReturn(IPage page, @Param(Constants.WRAPPER) QueryWrapper<PickItemDTO> wrapper, @Param("userParam") Map<String, Object> userParam);

    //根据 apply_item_id,package_unit 分组
    List<PickItemGroupByApplyPackageUnitDTO> getListGroupByApplyPackageUnit(@Param(Constants.WRAPPER) QueryWrapper<PickItemGroupByApplyPackageUnitDTO> wrapper);
    //根据 apply_item_id,package_unit 分组
    List<PickItemGroupByApplyPackageUnitDTO> getListGroupByDistItemIdPackageUnit(@Param(Constants.WRAPPER) QueryWrapper<PickItemGroupByApplyPackageUnitDTO> wrapper);

}
